package com.jzo2o.customer.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jzo2o.customer.model.domain.AgencyCertification;
import com.jzo2o.customer.model.domain.AgencyCertificationRecording;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface ICertificationByAgencyMapper extends BaseMapper<AgencyCertificationRecording> {

    @Select("select * from `jzo2o-customer`.agency_certification where certification_status=3 and id=#{id}")
    AgencyCertification selectLastRejectReason(Long id);
}
